<template>
	<view class="lay">
		<P class="school-name">{{school}}</P>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				school:'',
			}
		},
		mounted() {
			uni.request({
				url:'http://localhost:8090/nailCampus/school/getSchool',
				method:'GET',
				header:{
					"token":uni.getStorageSync('token')
				},
				success:res=>{
					if(res.data.data!=null){
						this.school = res.data.data.schoolName
					}else{
						this.school = ''
					}
				}
			})
		},
		methods: {
			change(e){
				console.log("e:",e);
			}
		}
	}
</script>

<style scoped>
	.lay{
		margin-top: 100rpx;

	}
	.school-name{
		font-size: 40rpx;
		font-weight:bold;
	}
	

</style>
